package com.linzp.bishe.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.linzp.bishe.entity.DisciplineCompetition;
import lombok.Data;

/**
 * @ClassName DisciplineCompetitionExcel
 * @Description 描述
 * @Author LinZePeng
 * @Date 2022/2/28 11:52
 * @Version 1.0
 */
@Data
public class DisciplineCompetitionExcel {

	@ExcelProperty("学科竞赛全称")
	private String competitionName;

	@ExcelProperty("项目或作品全称")
	private String workName;

	@ExcelProperty("级别")
	private String competitionLevel;

	@ExcelProperty("获奖等级等级")
	private String awardLevel;

	public DisciplineCompetition getDiscribedCompetition() {
		return new DisciplineCompetition()
				.setWorkName(this.workName)
				.setCompetitionName(this.competitionName)
				.setCompetitionLevel(this.competitionLevel)
				.setAwardLevel(this.awardLevel);
	}
}
